modules/input/gtkimcontextthai: Remove deprecated gdk_beep
authorYi-Soo An <yisooan@gmail.com>
Fri, 20 Jul 2018 06:39:49 +0000 (15:39 +0900)
committerYi-Soo An <yisooan@gmail.com>
Fri, 20 Jul 2018 06:39:49 +0000 (15:39 +0900)
Use gdk_display_beep instead of it.

modules/input/gtkimcontextthai.c

index 73510c0360c1153794dc85761bc8f69728a0bd88..c3ebc83be539711df6ec736b2281d66b5aecd3c4 100644 (file)
@@ -336,7 +336,8 @@ gtk_im_context_thai_filter_keypress (GtkIMContext *context,
   if (is_reject)
     {
       /* reject character */
-      gdk_beep ();
+      GdkDisplay *display = gdk_display_get_default ();
+      gdk_display_beep (display);
     }
   return TRUE;
 }